<template>
  <div>
<div class="footer_guide">

    <div class="guide_item" :class="{on:'/msite'===$route.path}" @click.prevent="goTo('/msite')">

    <span class="item_icon" >
    <i class="iconfont icon-shouyejianying "></i>
    </span><p></p>
    <span>首页</span>

    </div>

    <div class="guide_item" :class="{on:'/search'===$route.path}" @click="goTo('/search')">

    <span class="item_icon">
    <i class="iconfont icon-sousuo"></i>
    </span><p></p>
    <span>搜索</span>

    </div>
    <div class="guide_item" :class="{on:'/order'===$route.path}" @click="goTo('/order')">

    <span class="item_icon">
    <i class="iconfont icon-dingdan "></i>
    </span><p></p>
    <span>订单</span>

    </div>
    <div class="guide_item" :class="{on:'/Profile'===$route.path}" @click="goTo('/Profile')">

    <span class="item_icon">
    <i class="iconfont icon-geren"></i>
    </span><p></p>
    <span>我的</span>

    </div>

  </div>
  </div>
</template>

<script>
export default {
  data(){
    return{

    }
  },
  methods:{
    goTo(path){
      this.$router.replace(path)
    }
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
/*引入公共样式*/
@import "../../common/stylus/mixins.styl"
.footer_guide
  // 顶部有白色的边框
  padding 10px 0px
  top-border-1px(#e4e4e4)
  position fixed
  z-index 100
  left 0
  right 0
  bottom 0
  background-color #fff
  width 100%
  height 50px
  display flex
  .guide_item
    display flex
    flex 1
    text-align center
    flex-direction column
    align-items center
    margin 5px
    color #999999

    span
      font-size 12px
      margin-top 2px
      margin-bottom 2px
      .iconfont
        font-size 22px
    &.on
      color green
</style>




